<?php
namespace app\modules\app\models;
use app\modules\cn\models\UserDiscuss;
use yii\db\ActiveRecord;
use app\libs\GoodsPager;
use app\libs\Pager;
class QuestionMark extends ActiveRecord {
    public $cateData;

    public static function tableName(){
        return '{{%user_question_remark}}';
    }
    public static function getMark($pid,$typeid)
    {
        $uid = \Yii::$app->session->get('uid');
        $data=  QuestionMark::find()->asArray()->where("qid in ($pid) and typeid=$typeid and uid=".$uid)->one();
        return $data;
    }
}